fix tidy modernize-raw-string-literal
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 5 Sep 2024 13:38:41 +0000 (07:38 -0600)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 5 Sep 2024 13:38:41 +0000 (07:38 -0600)
html.cc
vcf.cc

diff --git a/html.cc b/html.cc
index 0385c2687bec96cfe6699f74d394c3da8d536944..e9971ed2604eecc89908e922cdf561a15b83fb8f 100644 (file)
--- a/html.cc
+++ b/html.cc
@@ -228,12 +228,12 @@ HtmlFormat::write()
   // Don't write this line when running test suite.  Actually, we should
   // probably not write this line at all...
   if (!gpsbabel_testmode()) {
-    *file_out << "  <meta name=\"Generator\" content=\"GPSBabel "
+    *file_out << R"(  <meta name="Generator" content="GPSBabel )"
               << gpsbabel_version << "\">\n";
   }
   *file_out << "  <title>GPSBabel HTML Output</title>\n";
   if (stylesheet) {
-    *file_out << "  <link rel=\"stylesheet\" type=\"text/css\" href=\""
+    *file_out << R"(  <link rel="stylesheet" type="text/css" href=")"
               << stylesheet << "\">\n";
   } else {
     *file_out << "  <style>\n";
diff --git a/vcf.cc b/vcf.cc
index ea33686507f4f6e6c70379e2222050b182c39b37..4910955041b887cf7d182ffc6038d7c1a21adf87 100644 (file)
--- a/vcf.cc
+++ b/vcf.cc
@@ -105,7 +105,7 @@ VcfFormat::vcf_disp(const Waypoint* wpt)
   vcf_print_utf(&wpt->gc_data->desc_short);
   gbfprintf(file_out, "\\n");
   vcf_print_utf(&wpt->gc_data->desc_long);
-  gbfprintf(file_out, "\\n\\nHINT:\\n");
+  gbfprintf(file_out, R"(\n\nHINT:\n)");
   if (vcf_encrypt) {
     QString s = rot13(wpt->gc_data->hint);
     vcf_print(s);